package org.nobject.common.swing.g;

import java.awt.Graphics;

import javax.swing.JTree;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreeNode;

/**
 * GTree
 *
 * @author bianrongjun
 * @version 1.0
 */
public class GTree extends JTree implements IG{
	
	/**
	 * 构造函数 
	 */
	public GTree() {
		super();
		this.core=new GComponent();
	}

	/**
	 * 构造函数 
	 * @param newModel
	 */
	public GTree(TreeModel newModel) {
		super(newModel);
		this.core=new GComponent();
	}

	/**
	 * 构造函数 
	 * @param root
	 */
	public GTree(TreeNode root) {
		super(root);
		this.core=new GComponent();
	}

	/** GComponent */
	private GComponent core;
	public GComponent getGCore() {return core;}
	
	
	public void paintChildren(Graphics g) {core.paintChildren(g);super.paintChildren(g);}
	
}
